package org.rugby.online.impl;

import java.util.ArrayList;
import java.util.List;

import org.rugby.online.core.base.RboPoint;
import org.rugby.online.core.places.RboPlace;

public class DefaultPlace extends DefaultObject implements RboPlace {

	/**
	 * Serial
	 */
	private static final long serialVersionUID = -8825538103108302430L;
	
	private RboPoint center;
	private List<RboPoint> shape;
	
	/**
	 * Constructor
	 * @param c the center of the place, in the general frame
	 */
	public DefaultPlace(RboPoint c) {
		super();
		center = c;
		shape = new ArrayList<RboPoint>(0);
	}
	
	@Override
	public RboPoint getCenter() {
		return center;
	}

	@Override
	public List<RboPoint> getShape() {
		return shape;
	}

}
